package bcit.nxt.mission;

// TurtleSquare.java

import gin.and.tonic.*;

public class TurtleSquare
{
  private TurtleRobot robot = new TurtleRobot();

  public TurtleSquare()
  {
    square(100, 30);
    square(200, 40);
    square(250, 60);
    robot.exit();
  }

  private void square(int dist, int speed)
  {
    for (int i = 0; i < 4; i++)
    {
      robot.setTurtleSpeed(speed);
      robot.forward(dist);
      robot.left(90);
    }
  }

  public static void main(String[] args)
  {
    new TurtleSquare();
  }
}